package com.bkbw.live.battle.test;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class Server1 {
	public static void main(String[] args) throws Exception{
		ServerSocket ss = new ServerSocket(8888);
		while(true){
			Socket socket = ss.accept();
			System.out.println("连上了");
			InputStream is = socket.getInputStream();
			int i = 0;
			while((i = is.read())!=-1){
				System.out.println(i);
			}
		}
	}
}
